<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>押金设置</title>
		<link rel="stylesheet" type="text/css" href="css/cxzx.css"/>
	</head>
	<body>
		<div class="main_content">
			<div class="con_left">
				<div class="l-box">
					<a href="cxzx.html">优惠券管理</a>
				</div>
				<div class="l-box">
					<a href="cxzx2.html">促销模式设置</a>
				</div>
				<div class="l-box in">
					<a href="cxzx3.html">押金设置</a>
				</div>
			</div>
			<div class="con_right fl">
				<div class="r_main">
					<div class="xiugai"	>
						<header>押金设置</header>
						<form action="" method="post" style="padding-left: 30px; padding-bottom: 30px;">
							<div class="s-one"><span>会员押金金额:</span>
									<input type="text" name="" id="input1" value="0" class="wzhi"/>
									<span style="color: #999;width: initial;">元</span>
									<span style="display: none;color: red;">格式错误！</span>
							</div>
							<div class="s-one"><span>充值卡押金金额:</span>
									<input type="text" name="" id="input2" value="0" class="wzhi"/>
									<span style="color: #999;width: initial;">元</span>
									<span style="display: none;color: red;">格式错误！</span>
							</div>
							<div align="center">	
								<input type="submit" value="确定" id="save" style="width: 96px;height: 26px;background: #008b98;color: white;"/>
							</div>
					   </form>
				  </div>
				</div>
			</div>
		</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/distpicker.data.js"></script>
		<script src="js/distpicker.js"></script>
		<script src="js/main.js"></script>
		<script type="text/javascript">
			$(':submit').on('click',function(){
				$('#input1').nextAll().eq(1).css('display','none');
				$('#input2').nextAll().eq(1).css('display','none');
				var input1=$.trim($('#input1').val());
				var input2=$.trim($('#input2').val());
				if(!$.isNumeric(input1)){
					$('#input1').nextAll().eq(1).css('display','inline-block');
					return false;
				}else if(!$.isNumeric(input2)){
					$('#input2').nextAll().eq(1).css('display','inline-block');
					return false;
				}else{
					return true;
				}
			})
		</script>
	</body>
</html>